package com.zt.dev.semiPhysicalEquipment.service;

import com.zt.dev.semiPhysicalEquipment.pojo.SemiPhysicalEquipment;
import com.zt.dev.semiPhysicalEquipment.pojo.SemiPhysicalEquipmentInfo;
import com.zt.dev.semiPhysicalEquipment.pojo.SemiPhysicalPerformance;
import com.zt.dev.semiPhysicalEquipment.pojo.SemiPhysicalUseInfo;
import com.zt.dev.semiPhysicalEquipment.util.PageBean;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

public interface SemiPhysicalEquipmentService {
    /**注册*/
    Boolean hardWareRegist(SemiPhysicalEquipmentInfo semiPhysicalEquipmentInfo);
    /**复制装备信息 ==注册*/
    Boolean copyHardWare(String ids);

    PageBean<SemiPhysicalEquipmentInfo> findAllHardWare(int currentPage, int pageSize,Integer equipmentId);

    int editHardWareById(SemiPhysicalEquipmentInfo semiPhysicalEquipmentInfo);

    /**单独修改使用信息*/
    int editUseInfoById(SemiPhysicalUseInfo useInfo);

    Boolean removeHardWareById(int[] ids);

    /**通过装备id获取装备信息*/
    SemiPhysicalEquipmentInfo findHardWareById(Integer id);


    /**获取所有装备*/
    List<SemiPhysicalEquipment> findAllEquipment();
    /**获取所有性能*/
    List<SemiPhysicalPerformance> findAllPerformances(Integer equipmentId);

    Boolean importExcel(MultipartFile file);

    void export(String startTime, String endTime);

}
